#pragma once

#ifndef TOOLS_H
#define TOOLS_H


float min (float A, float B)
{
		if (A > B)
				return B;
		return A;
}

double min (double A, double B)
{
	if (A > B)
		return B;
	return A;
}

unsigned min (unsigned A, unsigned B)
{
	if (A > B)
		return B;
	return A;
}

int min (int A, int B)
{
	if (A > B)
		return B;
	return A;
}

float max (float A, float B)
{
	if (A < B)
		return B;
	return A;
}

double max (double A, double B)
{
	if (A < B)
		return B;
	return A;
}

unsigned max (unsigned A, unsigned B)
{
	if (A < B)
		return B;
	return A;
}

int max (int A, int B)
{
	if (A < B)
		return B;
	return A;
}

#endif TOOLS_H
